//
//  iFlickrAppDelegate.m
//  iFlickr
//
//  Created by 张 霄鹤 on 09-5-17.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "iFlickrAppDelegate.h"
#import "RootViewController.h"
#import "DataManager.h"


@implementation iFlickrAppDelegate

@synthesize window;
@synthesize navigationController;


#pragma mark -
#pragma mark Application lifecycle

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
	
	[window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
}


- (void)applicationWillTerminate:(UIApplication *)application {
	// Save data if appropriate
	// TODO 保存上传图像信息
	DataManager *dm = [DataManager sharedDataManager];
	[dm saveUnfinishItems];
}


#pragma mark -
#pragma mark Memory management

- (void)dealloc {
	[navigationController release];
	[window release];
	[super dealloc];
}


@end

